package com.tjmc.finance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tjmc.recruit.finance.api.entity.TransactionRecordsEntity;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.http.ResponseEntity;

import java.util.Map;

public interface TransactionRecordsService extends IService<TransactionRecordsEntity> {
    /**
     * 生成订单
     * @param entity 订单信息
     * @return
     */
    TransactionRecordsEntity generationOrder(TransactionRecordsEntity entity);

    /**
     * 微信下单
     *
     * @param payOrderInfo
     * @return
     */
    void wxGenOrder(TransactionRecordsEntity payOrderInfo);

    /**
     * 微信支付异步结果处理
     *
     * @param request    请求头
     * @param notifyData 返回数据
     * @return ResponseEntity
     */
    ResponseEntity payNotification(HttpServletRequest request, String notifyData);

    Map<String, Object> getSignParam(String payOrderId);
}
